/*
 * strcpy.c
 *
 *  Created on: 2012-8-30
 *      Author: miracle
 */
#include"all.h"
void strcpy(char *strDest, const char const *strSrc){
	assert((strDest != NULL)&&(strSrc != NULL));
	while(*strSrc != '\0'){
		*strDest++=*strSrc++;
	}
	*strDest = '\0';
;
}
void memcpy(char *strDest, const char const*strSrc, int size){
	assert((strDest != NULL)&& (strSrc != NULL));

	while(size > 0)
	{
		*strDest++ = *strSrc++;
		size--;
	}
	*strDest = '\0';
}

